package com.zyj.eps.service;

import com.zyj.eps.mapper.VaccineMapper;
import com.zyj.eps.pojo.Vaccine;
import com.zyj.eps.pojo.Vapply;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @author super
 * @date 2022/3/30 15:47
 */
@Service
public class VaccineServiceImpl implements VaccineService {
    @Autowired
    private VaccineMapper vaccineMapper;

    public void setVaccineMapper(VaccineMapper vaccineMapper) {
        this.vaccineMapper = vaccineMapper;
    }

    @Override
    public List<Vaccine> getAllVaccine() {
        return vaccineMapper.getAllVaccine();
    }

    @Override
    public Vaccine getVaccineByVid(int vid) {
        return vaccineMapper.getVaccineByVid(vid);
    }

    @Override
    public int InsertVaccineApply(String applyname, int auid, int avid, String avname, String applytime, String vtime, String vaddress) {
        return vaccineMapper.InsertVaccineApply(applyname, auid, avid, avname, applytime, vtime, vaddress);
    }

    @Override
    public List<Vapply> getApplyVaccineList(int auid) {
        return vaccineMapper.getApplyVaccineList(auid);
    }
}
